package com.zklh.book.system.model;

/**
 * 图书模型
 *
 * @author 坐看落花
 * @version 1.0
 * @date 2021/3/20 19:15
 */
public class Book {

    /**
     * 书代号
     */
    private String code;

    /**
     * 书名
     */
    private String name;

    /**
     * 书总数
     */
    private int amount;

    /**
     * 书剩余数量
     */
    private int remain;

    /**
     * 书状态, 参见 {@link com.zklh.book.system.common.enums.StatusEnum}
     */
    private String status;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getRemain() {
        return remain;
    }

    public void setRemain(int remain) {
        this.remain = remain;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public Book(String code, String name, int amount, int remain, String status) {
        this.code = code;
        this.name = name;
        this.amount = amount;
        this.remain = remain;
        this.status = status;
    }

    public Book() {
    }
}
